import request from '@/utils/request'

export function upload(data) {
  return request({
    url: '/file/upload',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: data
  })
}
export function download(name) {
  return request({
    url: '/file/download',
    method: 'get',
    params: {
      fileName: name
    },
    responseType: 'blob'
  })
}
